package org.example.multi_sys_consist.service.impl;

import org.example.multi_sys_consist.service.CurrentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 模拟日志服务
 */
@Service
public class LogService {

    @Autowired
    private CurrentService currentService;

    public void addLog(String log) {
        System.out.println(currentService.currentUser().getAccount() + "add log: " + log);
    }
}
